﻿<%@ Page Language="C#" MasterPageFile="~/WebShop.master" AutoEventWireup="true" CodeFile="NewsDetail.aspx.cs"
    Inherits="Common_News_NewsDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="background-color: White; padding: 5px; padding-right: 20px" class="div_skin-tango">
        <asp:DataList ID="dtlNews" runat="server" Width="100%" OnItemDataBound="dtlNews_ItemDataBound">
            <ItemTemplate>
                <table border="0" cellpadding="2" cellspacing="0" style="width: 100%">
                    <tr>
                        <td align="left" colspan="3" style="padding-left: 10px" valign="top">
                            <asp:Label ID="lblTitleNews" runat="server" Text='<%# Eval("Title") %>' CssClass="link_Title1"
                                Font-Bold="true"></asp:Label></td>
                    </tr>
                    <tr>
                        <td align="left" colspan="3" style="padding-left: 10px" valign="top">
                            &nbsp;<asp:Label ID="lblContent" runat="server" Text='<%#Eval("Content")%>' CssClass="lbl_Content2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" colspan="3" style="padding-left: 10px; padding-top: 5px" valign="top">
                        </td>
                    </tr>
                    <tr>
                        <td align="left" colspan="3" style="padding-left: 10px; padding-top: 5px" valign="top">
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblDate" runat="server" Font-Size="10px" Text='<%#Eval("UpdDate").ToString()%>'
                                CssClass="lbl_small1"></asp:Label>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList>
        <asp:Label ID="Label1" runat="server" Text="Các tin cũ hơn" CssClass="lbl_Title2"></asp:Label>
        <hr />
        <asp:GridView ID="grv_SimilarNews" AllowPaging="true" runat="server" AutoGenerateColumns="False"
            ShowHeader="False" GridLines="None" PageSize="5" Width="100%" OnRowDataBound="grv_SimilarNews_RowDataBound"
            OnPageIndexChanging="grv_SimilarNews_PageIndexChanging">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <table border="0" cellpadding="2" cellspacing="0" style="width: 100%">
                            <tr>
                                <td align="left" colspan="3" style="padding-left: 10px" valign="top">
                                    <a style="text-decoration: none" href='<%=ResolveUrl("~/")%>nws/<%#Eval("NewsID") %>/<%#Eval("KindNo") %>.aspx'>
                                        <asp:Label ID="lblTitleNews" Font-Size="11px" runat="server" CssClass="link_Content1"
                                            Font-Bold="false" Text='<%# Eval("Title") %>'></asp:Label></a></td>
                            </tr>
                            <tr>
                                <td align="right" colspan="3" valign="top">
                                    <asp:Label ID="lblDate" runat="server" CssClass="lbl_small1" Font-Size="10px" Text='<%#Eval("UpdDate").ToString()%>'></asp:Label></td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <div class="td_Separator_Newsx">
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerStyle ForeColor="white" />
        </asp:GridView>
        <div style="width: 100%; text-align: right">
            <asp:HyperLink ID="hplBack" runat="server" CssClass="lbl_small2">&lt;&lt;Quay lại</asp:HyperLink></div>
    </div>
</asp:Content>
